import request from '@/utils/request'

// 获取地址列表
export const getAddressList = () => {
  return request.get('/address/list')
}

// 新增或编辑地址
export const addAddress = (content) => {
  return request.post('/address/addorupdate', content)
}

// 删除地址
export const delAddress = (id) => {
  return request.delete(`/address/del/${id}`)
}
